from django.db import models

class Book(models.Model):
    name = models.CharField(max_length=100,null=False)
    author = models.CharField(max_length=100,null=False)
    price = models.FloatField(default=0)

    def __str__(self):
        # <Book:(name,author,price)>
        return "<Book:({name},{author},{price})>".format(name=self.name,author=self.author,price=self.price)

# python manage.py makemigrations

# python manage.py migrate
